<script setup lang="ts">

</script>

<template>
  <div class="one-price">
    <div class="content-box">
      <div class="content-left left">
        <div class="title">一口价域名推荐</div>
        <div class="desc">精品域名，一口价</div>
        <div class="more">更多 <span class="icont">&#xe6a6;</span></div>
      </div>
      <div class="content-right">
            <div class="item text-sm" v-for="item in 8">
              <div class="text-black domain pt-5">lanming.cc</div>
              <div class="text-[var(--el-color-danger)] py-2">¥500</div>
              <div class="text-xs text-gray-400">卖家ID:78728</div>
            </div>
      </div>
    </div>
    <div class="content-box">
      <div class="content-left right">
        <div class="title">即将结束竞价域名</div>
        <div class="desc">域名竞价，勇者胜</div>
        <div class="more">更多 <span class="icont">&#xe6a6;</span></div>
      </div>
      <div class="content-right">
        <div class="item text-sm" v-for="item in 8">
          <div class="text-black domain pt-5">lanming.cc</div>
          <div class="text-[var(--el-color-danger)] py-2">&#8776; 500</div>
          <div class="text-xs text-gray-400">剩余时间：34分35秒</div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
@keyframes move {
  0% {
    margin-left:0 ;
  }
  50% {
    margin-left:10px;
  }
  100% {
    margin-left:0 ;
  }
}
.one-price{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  height: 481px;
  margin: 0 auto;
  width: 1160px;
  grid-gap:30px;
  .content-box{
    .content-left{
      padding:20px 0 0 20px ;
      .title{
        line-height: 1;
        font-size: 16px;
        font-weight: bold;
        color: #181C29;
      }
      .desc{
        margin: 15px 0 28px;
        line-height: 1;
        font-size: 14px;
        color:#666;
      }
      .more{
        &:hover{
          .icont{
            animation: move 1s linear infinite;
          }
        }
        color:var(--el-color-primary);
        font-family:'iconfont';
      }
      &.left{
        background-image: url("~/assets/imgs/one-price-left.png");
        background-size: 100%;
      }
      &.right{
        background-image: url("~/assets/imgs/one-price-right.png");
      }
    }
    .content-right{
      display: grid;
      grid-template-columns: repeat(2,1fr);
      //background-color:#f2f2f2;
      text-align: center;
      .item{
        background-color: var(--el-color-white);
        border:1px solid #eeeeee;
        margin:-1px;
        &:hover{
          box-shadow: 0px 6px 25px 0px rgba(195, 199, 203, 0.3);
          transition: all 0.2s ease-in-out;
          background-color: #ffffff;
          .domain{
            color:var(--el-color-primary)
          }
        }
      }
    }
    display: grid;
    grid-template-columns:180px 1fr;
    grid-gap: 20px;
  }
}
</style>